import request from "../util/request";

// 班级管理相关接口

// 查询班级列表
export const selectClassList = function (params = {}) {
  return request({
    url: "/admin/class",
    method: "get",
    params: params,
  });
};

// 根据ID删除班级
export const deleteClassById = function (params = {}) {
  return request({
    url: "/admin/class",
    method: "delete",
    params: params,
  });
};

// 添加新班级
export const insertNewClass = function (params = {}) {
  return request({
    url: "/admin/class",
    method: "post",
    params: params,
  });
};
